package com.topnav.mc.admin.entity;

import javax.validation.constraints.NotBlank;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.topnav.mc.entity.base.BaseEntity;
import com.topnav.mc.validator.group.IAdd;
import com.topnav.mc.validator.group.IUpdate;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * 说明：组织机构实体类
 * @类名: Organization
 * <p>
 *
 * </p>
 * @author   kenny
 * @Date	 2021年11月17日上午11:29:39
 */
@Data
@TableName("mc_organization")
@Accessors(chain = true)
public class Organization extends BaseEntity{

	@NotBlank(message = "不允许为空",groups={IAdd.class})
	private String code;
	@NotBlank(message = "不允许为空",groups={IAdd.class})
	private String name;
	private String shortName;
	private String path;
	private Long parentId;
	private Boolean hasChild;

	private String groupTalkUser;
	private String groupTalkPswd;


	public String getIdString(){
		return this.getId() == null?null:this.getId().toString();
	}


}
